package quiz3;

/**
 * Created by xujc on 7/14/15.
 */
public class Lader {
    private double upperEdge;
    private double lowerEdge;
    private double height;
    private double area;

    public double getArea() {
        return area;
    }

    public Lader(double upperEdge, double lowerEdge, double height) {
        this.upperEdge = upperEdge;
        this.lowerEdge = lowerEdge;
        this.height = height;
        area=(upperEdge+lowerEdge)*height/2;
    }
}
